package com.example.demo.enumtest;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 16:02 2020/11/26
 * @Modified By:
 */
public enum ConnectStatus {
    INIT(1, "初始化"), CONNECTING(2, "连接中"), CONNECTED(3, "已连接"), LINK_BROKEN(4, "连接断开"),
    ;

    private int code;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    private String msg;

    ConnectStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
